<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <div data-th-replace="layout/head-top"></div>
</head>
<body>
    <div class="m-t-lg">
        <dl class="dl-horizontal">
            <dt>图书名称：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['bookName']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书封面：</dt>
            <dd class="m-r">
                <div class="clearfix">
                    <div class="file-box">
                        <div class="file">
                            <div class="image">
                                <img alt="image" class="img-responsive" th:src=" ${book['imageMap']['pcUrlMap']['large']} ">
                            </div>
                        </div>
                    </div>
                </div>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书专业/科目：</dt>
            <dd class="m-r">
                <th:block th:if="!${#lists.isEmpty(book['subjectList'])}">
                    <span class="fs12 c-4e" th:each="subject,subIndex : ${book['subjectList']}">
                        <th:block th:text="${subject['subjectName']}+'/'"></th:block>
                        <th:block th:if="!${#lists.isEmpty(subject['childSubjectList'])}" th:each="child,index : ${subject['childSubjectList']}">
                            <th:block th:if="${index.last} == false" th:text="${child['subjectName']}+'/'"></th:block>
                            <th:block th:if="${index.last} == true" th:text="${child['subjectName']}"></th:block>
                        </th:block>
                        <th:block th:if="${#lists.isEmpty(subject['childSubjectList'])}">全部科目</th:block>
                        <th:block th:if="${subIndex.last}==false" th:utext="'<br/>'"></th:block>
                    </span>
                </th:block>
                <th:block th:if="${#lists.isEmpty(book['subjectList'])}">
                    <span class="fs12 c-4e">—</span>
                </th:block>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书原价：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['rawPrice']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书销售价：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['realPrice']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <div th:if="${selaSwitch}=='3'">
            <dl class="dl-horizontal">
                <dt>图书会员价：</dt>
                <dd class="m-r">
                    <span class="fs12 c-4e" th:text="${book['memberPrice']}"></span>
                </dd>
            </dl>
            <div class="hr-line-dashed"></div>
        </div>
        <dl class="dl-horizontal">
            <dt>图书库存：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['stockNum']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>图书作者：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['author']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书出版社：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['bookPress']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书出版日期：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${#strings.substring(book['publishTime'],0,10)}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书页数：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['pageNum']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>

        <dl class="dl-horizontal">
            <dt>图书ISBN：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:text="${book['bookISBN']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>图书状态：</dt>
            <dd class="m-r">
                <span th:if="${book['status']}==0" class="fs12 c-4e label label-default">未指定</span>
                <span th:if="${book['status']}==1" class="fs12 c-4e label label-info">上架</span>
                <span th:if="${book['status']}==2" class="fs12 c-4e label label-danger">下架</span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>图书简介：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:utext="${book['depict']}"></span>
            </dd>
        </dl>
        <div class="hr-line-dashed"></div>
        <dl class="dl-horizontal">
            <dt>图书目录：</dt>
            <dd class="m-r">
                <span class="fs12 c-4e" th:utext="${book['contents']}"></span>
            </dd>
        </dl>
    </div>
    <div data-th-replace="layout/head-footer"></div>
</body>
</html>